package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Mobile   string `json:"mobile" form:"mobile" gorm:"type:char(11)"`
	Password string `json:"password" form:"password" gorm:"type:varchar(40)"`
}
type ShiPing struct {
	gorm.Model
	Title string `json:"title" form:"title" gorm:"type:varchar(40)"`
	Like  int    `json:"like" form:"like" gorm:"type:int(40)"`
	Count int    `json:"count" form:"count" gorm:"type:int(40)"`
}
type UserData struct {
	gorm.Model
	UserId    int `json:"user_id" form:"user_id" gorm:"type:int(40)"`
	Fans      int `json:"fans" form:"fans" gorm:"type:int(40)"`
	Follow    int `json:"follow" form:"follow" gorm:"type:int(40)"`
	ShiPingId int `json:"shi_ping_id" form:"shi_ping_id" gorm:"type:int(40)"`
}
